package com.ruoyi.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员管理对象 user
 * 
 * @author nur
 * @date 2021-11-05
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String userNickname;

    /** 用户状态（是否在线）1在线,0不在线 */
    @Excel(name = "用户状态", readConverterExp = "是=否在线")
    private String userState;

    /** 密码 */
    @Excel(name = "密码")
    private String userPassword;

    /** 用户权限（1，管理员，0为普通用户） */
    @Excel(name = "用户权限", readConverterExp = "1=，管理员，0为普通用户")
    private String userPower;

    /** 用户余额 */
    @Excel(name = "用户余额")
    private Long userAccount;

    /** 用户头像图片地址 */
    @Excel(name = "用户头像图片地址")
    private String headImg;

    /** 用户真实姓名 */
    @Excel(name = "用户真实姓名")
    private String userName;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String userEmail;

    /** 用户生日 */
    @Excel(name = "用户生日")
    private String userBirthday;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userUsername;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private String userPhone;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserNickname(String userNickname) 
    {
        this.userNickname = userNickname;
    }

    public String getUserNickname() 
    {
        return userNickname;
    }
    public void setUserState(String userState) 
    {
        this.userState = userState;
    }

    public String getUserState() 
    {
        return userState;
    }
    public void setUserPassword(String userPassword) 
    {
        this.userPassword = userPassword;
    }

    public String getUserPassword() 
    {
        return userPassword;
    }
    public void setUserPower(String userPower) 
    {
        this.userPower = userPower;
    }

    public String getUserPower() 
    {
        return userPower;
    }
    public void setUserAccount(Long userAccount) 
    {
        this.userAccount = userAccount;
    }

    public Long getUserAccount() 
    {
        return userAccount;
    }
    public void setHeadImg(String headImg) 
    {
        this.headImg = headImg;
    }

    public String getHeadImg() 
    {
        return headImg;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserEmail(String userEmail) 
    {
        this.userEmail = userEmail;
    }

    public String getUserEmail() 
    {
        return userEmail;
    }
    public void setUserBirthday(String userBirthday) 
    {
        this.userBirthday = userBirthday;
    }

    public String getUserBirthday() 
    {
        return userBirthday;
    }
    public void setUserUsername(String userUsername) 
    {
        this.userUsername = userUsername;
    }

    public String getUserUsername() 
    {
        return userUsername;
    }
    public void setUserPhone(String userPhone) 
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone() 
    {
        return userPhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userNickname", getUserNickname())
            .append("userState", getUserState())
            .append("userPassword", getUserPassword())
            .append("userPower", getUserPower())
            .append("userAccount", getUserAccount())
            .append("headImg", getHeadImg())
            .append("userName", getUserName())
            .append("userEmail", getUserEmail())
            .append("userBirthday", getUserBirthday())
            .append("userUsername", getUserUsername())
            .append("userPhone", getUserPhone())
            .toString();
    }
}
